package com.school.manager.domaim;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.school.manager.annotations.Like;
import com.school.manager.annotations.OrderBy;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * description：系统字典表映射实体
 * date：2021/10/133:18 下午
 */

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sys_code_book")
public class SysCodeBook extends BaseDomain<SysCodeBook> {
	
	/**
     * 字典类型
     */
    @TableField("code_type")
    private String codeType;
    
    /**
     * 类型名称
     */
    @TableField("type_value")
    private String typeValue;

    /**
     * 字典代码
     */
    @TableField("code")
    @Like("code")
    private String code;

    /**
     * 字典值
     */
    @TableField("value")
    private String value;
    
    /**
     * 字典父级id
     */
    @TableField("pid")
    private String pid;
    
    /**
     * 字典排序
     */
    @TableField("code_order")
    @OrderBy
    private String codeOrder;
    
}
